package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.SysRegister;
import com.ruoyi.system.mapper.SysRegisterMapper;
import com.ruoyi.system.service.ISysRegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ISysRegisterServiceImpl implements ISysRegisterService {
    @Autowired
    private SysRegisterMapper sysRegisterMapper;

    @Override
    public List<SysRegister> selectRegisterList(SysRegister register) {
        return sysRegisterMapper.selectRegisterList(register);
    }

    @Override
    public int insertRegister(SysRegister register) {
        return sysRegisterMapper.insertRegister(register);
    }

    @Override
    public SysRegister selectRegisterById(long registerId) {
        return sysRegisterMapper.selectRegisterById(registerId);
    }

    @Override
    public int updateRegister(SysRegister register) {
        return sysRegisterMapper.updateRegister(register);
    }

    @Override
    public int deleteByIds(long[] registerIds) {
        return sysRegisterMapper.deleteRegisterByIds(registerIds);
    }

    @Override
    public Double selectRegisterByName(String name) {
        return sysRegisterMapper.selectRegisterByName(name);
    }
}